<?php
namespace App\Api\Controllers\V1;
use App\Api\Controllers\Validators\CommentValidator;
use App\Api\Helper\ReturnMessage;
use App\Services\AppStartSetService;
use Illuminate\Http\Request;


class AppStartSetController extends BaseController
{
    /**
     * @param Request $request
     * @return \Dingo\Api\Http\Response
     * @name 获取启动页列表
     * @user IHammer
     */
    public static function getLists(Request $request){
        $token=$request->get('token')?:'';
        if(!empty($token)){
            $request->offsetSet('company_id',constant('_USER_CORPORATION_ID'));
        }
        $res = AppStartSetService::getListsHandle($request);
        return ReturnMessage::successToAppInfo($res);
    }
}